package com.diorsunion.hedge.bo.message.datahandler;

import com.diorsunion.hedge.dto.BorkerAccount;
import com.diorsunion.hedge.io.MessageHandler;
import com.diorsunion.hedge.io.Message;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * Created by custe on 2016/5/30.
 */
@Component("BorkerHandler")
public class BorkerHandler implements MessageHandler {
    @Override
    public Message execute(Serializable obj) {
        System.out.println("BorkerHandler."+obj);
        return null;
    }

    final List<Class> classSet = Lists.newArrayList(BorkerAccount.class);

    @Override
    public List<Class> handlerClasses() {
        return classSet;
    }
}
